<!--包含头部文件-->
{include file="public/header" /}
<body>
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 订单管理 <span class="c-gray en">&gt;</span> <a href="{:url('order/nosend')}">待发货订单列表</a>{:refresh()}</nav>
<div class="page-container">
	<!--<div class="text-c"> 日期范围：-->
		<!--<input type="text" onfocus="WdatePicker()" id="datemin" class="input-text Wdate" style="width:120px;">-->
		<!-- - -->
		<!--<input type="text" onfocus="WdatePicker()" id="datemax" class="input-text Wdate" style="width:120px;">-->
		<!--<input type="text" class="input-text" style="width:250px" placeholder="输入会员名称、电话、邮箱"  name="">-->
		<!--<button type="submit" class="btn btn-success radius"  name=""><i class="Hui-iconfont">&#xe665;</i> 搜用户</button>-->
	<!--</div>-->
	<div>
	<table class="table table-border table-bordered table-hover table-bg table-sort">
		<thead>
			<tr class="text-c">
				<th width="25"><input type="checkbox" name="" value=""></th>
				<th width="80">ID</th>
				<th width="80">订单号</th>
				<th width="60">商品id</th>
				<th width="60">用户名</th>
				<th width="40">数量</th>
				<th width="80">总价</th>
				<th width="80">订单时间</th>
				<th width="50">支付状态</th>
				<th width="40">订单状态</th>
				<th width="80">操作</th>
			</tr>
		</thead>
		<tbody>
		{volist name="orders" id="vo"}
			<tr class="text-c">
				<td><input type="checkbox" value="1" name=""></td>
				<td>{$vo.id}</td>
				<td>{$vo.out_trade_no}</td>
				<td>{$vo.deal_id}</td>
				<td>{$vo.username}</td>
				<td>{$vo.deal_count}</td>
				<td>{$vo.total_price}</td>
				<td>{$vo.create_time}</td>
				<td>{$vo.pay_status|paystatus}</td>
				<td>{$vo.status|orderstatus}</td>
				<td class="td-manage">

					<a style="text-decoration:none" class="ml-5" onClick="" href="{:url('order/detail',['id'=>$vo.id])}" title="查看"><i class="Hui-iconfont">&#xe6df;</i></a>
					<a style="text-decoration:none" class="ml-5" onClick="" href="{:url('base/status',['id'=>$vo.id,'status'=>3,'model'=>'Order'])}" title="发货">发货</a>
			</tr>
			{/volist}
		</tbody>
	</table>
	</div>
</div>
<!--包含头部文件-->
{include file="public/footer" /}
<script type="text/javascript">
$(function(){
	$('.table-sort').dataTable({
		"aaSorting": [[ 1, "desc" ]],//默认第几个排序
		"bStateSave": true,//状态保存
		"aoColumnDefs": [
		  //{"bVisible": false, "aTargets": [ 3 ]} //控制列的隐藏显示
		  {"orderable":false,"aTargets":[0,8,9]}// 制定列不参与排序
		]
	});
	$('.table-sort tbody').on( 'click', 'tr', function () {
		if ( $(this).hasClass('selected') ) {
			$(this).removeClass('selected');
		}
		else {
			table.$('tr.selected').removeClass('selected');
			$(this).addClass('selected');
		}
	});
});

</script> 

